package com.emmy.walnut.util;

import android.content.Context;

import com.emmy.walnut.constant.AppConstant;

/**
 * @ClassName ResourceUtil
 * @Description TODO
 * @Author zhouxuan
 * @Date 2020/02/08 15:27
 * @Version 1.0
 */
public class ResourceUtil {
    public static int getColorId(String resName){
        return AppConstant.APPLICATION_CONTEXT.getResources().getIdentifier(resName,
                "color", AppConstant.APPLICATION_CONTEXT.getPackageName());
    }
}
